<?php

namespace Xin\LaravelFortify\Foundation\Middleware;

use Illuminate\Http\Request;

/**
 * @property array $except
 */
trait InteractsExcept
{

	/**
	 * @param Request $request
	 * @return bool
	 */
	protected function isExcept(Request $request)
	{
		$except = property_exists($this, 'except') ? $this->except : [];

		return $request->is($except);
	}

}
